package com.xc.tjise.TJISE.day05;

public class PassParameter {

    public static void method1(int x) {
        System.out.println(x);  // 1
        x++;
        System.out.println(x); // 2
    }

    public static void method2(Test t) {
        System.out.println(t.b);  // T
        t.b = false;
        System.out.println(t.b); // F
    }
    public static void method3(String s){
        System.out.println(s);
        s="hi";
        System.out.println(s);
    }

    public static void main(String[] args) {
       /* Test t = new Test();
        t.b = true;
        System.out.println(t.b);  // T
        method2(t);
        System.out.println(t.b);  // F*/
        String s="hello";
        System.out.println(s);
        method3(s);
        System.out.println(s);
    }

}

class Test{
    boolean b;
}